package dya07;
//重载的演示
public class OverloadDemo {
    public static void main(String[] args) {
        String c = "";
        char[]a = {'a','b'};
        for (int i = 0; i < a.length; i++) {
            c += a[i];
        }
        System.out.println(c);


    }
}
        /*
        show();
        show("zhangsan");
        show("zhansan",20);
        show(19,"lisi");
        //show(3.15);//编译错误.没有double参的show
    }
    public static void show(){}
    public static void show(String name){}
    public static void show(String name,int age){}
    public static void show(int age,String name){}

    //public static int show(){return 1; }//编译错误,重载与返回值类型无关
    //public static void show(String address){}//编译错误,重载与参数名称无关


         */


